home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / source / checkvsa / checkvsa.asm next >
Encoding:
Assembly Source File  |  1994-10-09  |  970 b   |  32 lines

  1.             .MODEL  small
  2.             .STACK                     ;Default 1Kb stack is OK
  3.             .DATA
  4.              
  5.     
  6. EMsg1       DB      'Your system is not VESA compatible.',13,10
  7. VesaInfo    DB      256 dup (?)        ;VESA Video information block  
  8.             .CODE
  9.             .STARTUP
  10. ; Check to see if a VESA extended video BIOS is out there. If it is,
  11. ; we have a Super VGA card.
  12.      
  13.       mov             ax,seg VesaInfo
  14.       mov             es,ax
  15.       mov             di,offset VesaInfo
  16.       mov             ax,04F00h
  17.       int             10h                             ; Call the VESA video BIOS
  18.       cmp             ax,004Fh
  19.       jne             Error1
  20.       mov             ax,4c00h
  21.       int             21h
  22.             
  23.             
  24. Error1:     MOV     SI,OFFSET EMsg1
  25.             extrn   PrtString:proc
  26.             CALL    PrtString
  27. AllDone:    mov     ax,4c00h
  28.             int     21h
  29.  
  30.  
  31.             END
  32.